package com.example.qrcodelogin.model;

import lombok.Data;

/**
 * @author dlw
 * @date 2025-06-05 10:56
 */
@Data
public class QRCodeStatus {

    //等待扫描
    public static final String WAITING = "WAITING";
    //已扫描
    public static final String SCANNED = "SCANNED";
    //已确认
    public static final String CONFIRMED = "CONFIRMED";
    //已取消
    public static final String CANCELLED = "CANCELLED";
    //已过期
    public static final String EXPIRED = "EXPIRED";

    //二维码ID
    private String qrCodeId;
    //状态
    private String status;
    //创建时间
    private long createTime;
    //用户信息
    private UserInfo userInfo;

    public QRCodeStatus() {
        this.createTime = System.currentTimeMillis();
    }
    public QRCodeStatus(String qcCodeId, String status) {
        this.qrCodeId = qcCodeId;
        this.status = status;
        this.createTime = System.currentTimeMillis();
    }
}
